//
//  TicketHelper.swift
//  ANOA
//
//  Created by 邱仙凯 on 2022/7/22.
//  Copyright © 2025 aowang. All rights reserved.
//

import UIKit
enum InvoiceCheckType {
    case typev1,typev4
}
enum InvoiceIdentifyType {
    case typeYn,typeNormal
}
class TicketAppear:NSObject {
    private override init() {}
     static let shared = TicketAppear()
    
    // 有 无发票类型
       var noTicketMode:Bool = false
       @discardableResult
       func noTicketMode(_ value:Bool) -> TicketAppear {
           self.noTicketMode = value
            return self
       }
    
    
    // 是否需要查验
       var needCheckControl:Bool = true
       @discardableResult
       func needCheckControl(_ value:Bool) -> TicketAppear {
           self.needCheckControl = value
            return self
       }
    // 是否需要Pdf校验
       var needPdfControl:Bool = true
       @discardableResult
       func needPdfControl(_ value:Bool) -> TicketAppear {
           self.needPdfControl = value
            return self
       }
    // 支持批量pdf模式
       var multiPDFAdd:Bool = false
       @discardableResult
       func multiPDFAdd(_ value:Bool) -> TicketAppear {
           self.multiPDFAdd = value
            return self
       }
    
    
 // 查验接口
    var checkType:InvoiceCheckType = .typev4
    @discardableResult
    func checkType(_ value:InvoiceCheckType) -> TicketAppear {
        self.checkType = value
         return self
    }
    // 识别接口
    var identifyType:InvoiceIdentifyType = .typeYn
    @discardableResult
    func identifyType(_ value:InvoiceIdentifyType) -> TicketAppear {
        self.identifyType = value
         return self
    }
    // 票夹子类型   个人票夹   公司票夹  销售票夹
    var invoiceCoType:[String] = ["个人票夹","公司票夹","销售票夹"]
    @discardableResult
    func invoiceCoType(_ value:[String]) -> TicketAppear {
        self.invoiceCoType = value
         return self
    }
    
  
}
